package com.ta.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ta.gulimall.common.utils.system.PageUtils;
import com.ta.gulimall.member.view.entity.MemberReceiveAddressEntity;
import com.ta.gulimall.member.view.vo.AddressFareVo;

import java.util.List;
import java.util.Map;

/**
 * 会员收货地址
 *
 * @author tuao
 * @email tuaoo@gmail.com
 * @date 2022-10-29 11:21:52
 */
public interface MemberReceiveAddressService extends IService<MemberReceiveAddressEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询会员收货地址集合
     * @param userId
     * @return
     */
    List<MemberReceiveAddressEntity> deliveryAddress(Long userId);

    /**
     * 根据地址Id查询地址信息
      * @param id
     * @return
     */
    AddressFareVo deliveryAddressById(Long id);
}

